package model

import (
	"gorm.io/gorm"
	"time"
)

type Mate struct {
	Id         uint64         `gorm:"column:id;type:bigint UNSIGNED;primaryKey;not null;" json:"id"`
	UserId     uint64         `gorm:"column:user_id;type:bigint UNSIGNED;comment:用户Id;not null;" json:"user_id"`                                                                 // 用户Id
	MateId     uint64         `gorm:"column:mate_id;type:bigint UNSIGNED;comment:好友申请Id;not null;" json:"mate_id"`                                                               // 好友申请Id
	MateStatus string         `gorm:"column:mate_status;type:enum('未申请', '已申请', '未同意', '已同意', '已删除', '已拉黑');comment:状态 1-未申请 2-已申请 3-已同意 4-未同意;default:未申请;" json:"mate_status"` // 状态 1-未申请 2-已申请 3-已同意 4-未同意
	CreatedAt  time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt  time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
